package com.company.project.demo.listener.event;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

import java.util.Map;

/**
 * @Description DemoEvent
 * @Author zhongbo.yu
 * @Date 2021/12/28
 */
@Data
public class DemoEvent extends ApplicationEvent {

    /**
     * 扩展信息
     */
    private Map<String, Object> extendMap;

    /**
     * 构造方法
     *
     * @param source
     */
    public DemoEvent(Object source, Map<String, Object> extendMap) {
        super(source);
        this.extendMap = extendMap;
    }

}
